//
// Created by Administrator on 2023-11-15.
//
#include <QApplication>
#include "headers/mainwindow.h"
#include <QScreen>
int main(int argc, char *argv[]) {
    qDebug() << "frameless-window开始启动...";
    QApplication a(argc, argv);
    QIcon icon("../../frameless-window/src/resources/images/logo.png");
    QApplication::setWindowIcon(icon);
    MainWindow window;
    QScreen *screen = QGuiApplication::primaryScreen();//获取主屏
    QRect rect =  screen->geometry();
    window.resize(QSize(rect.size().width() * 0.8 ,rect.size().height()* 0.8 ));
    window.show();
    qDebug() << "frameless-window动完成...";
    return QApplication::exec();
}
